<!-- Begin users/users.tpl -->
{opentable}
{titlebar colspan=6 title=$lg->users}
<tr class="sectiontableheader">
<td>{$lg->userid}</td>
<td>{$lg->last_name}</td>
<td>{$lg->first_name}</td>
<td>{$lg->email}</td>
<td align="center" width="5%">{$lg->edit}</td>
<td align="center" width="5%">{$lg->notify}</td>
</tr>
{if is_array($users)}
{foreach from=$users item=user}
<tr class="{rowcolor}">
<td width="20%"><a href="?module=users&action=view&uid={$user.userid}">{$user.username}</a></td>
<td width="20%">{$user.last_name}</td>
<td width="20%">{$user.first_name}</td>
<td width="35%">{$user.email}</td>
<td align="center" width="5%"><a href="?module=users&action=view&uid={$user.userid}"><img src="{$smarty.env.imgs.edit}" width="16" height="16" border="0" alt="Edit User" /></a></td>
<td align="center" width="5%">
{if $user.active eq "t"}
<a href="?module=users&uid={$user.userid}&active=f"><img src="{$smarty.env.imgs.ok}" width="16" height="16" border="0" alt="Active" /></a>
{/if}
{if $user.active eq "f"}
<a href="?module=users&uid={$user.userid}&active=t"><img src="{$smarty.env.imgs.no}" width="16" height="16" border="0" alt="Inactive" /></a>
{/if}
{if $user.active eq "i"}
<a href="?module=users&action=mail&uid={$user.userid}&active=i"><img src="{$smarty.env.imgs.email}" width="16" height="16" border="0" alt="initial" /></a>
{/if}
</td>
</tr>
{/foreach}
{else}
<tr class="data"><td colspan="6">No users retrieved from database.</td></tr>
{/if}
</table>
</table>
<!-- End users/users.tpl -->

